package System;

import java.awt.Graphics;

import AI.AbstractAI;
import View.MapView;

public class Frame extends AbstractFrame{
    private MapView mapView;
    private AbstractAI ai;
	public Frame(MapView _mapView,AbstractAI _ai) {
		mapView=_mapView;
		//charView=_charView;

		ai = _ai;
	}

	@Override
	protected void showView(Graphics circleGraphics) {
		mapView.paintComponent(circleGraphics);

        //charView.paintComponent(circleGraphics,null);
        
       // projectileView.paintComponent(circleGraphics);
        
        //pathView.paintComponent(circleGraphics);
	}
	@Override
	protected void checkCollision() {
		ai.checkCollision();
		ai.hitTest();
	}


}
